<header class="subhead" id="overview">
  <div class="container">
    <center><%=image_tag("http://maamoon.com/images/logo.jpg")%></center>
  </div>
</header>
<div class="span3 bs-docs-sidebar">
<ul class="nav nav-list well bs-docs-sidenav affix">
<li class="About Us"><a href="/about">About Us</a></li>
<li class="Departments"><a href="/departments/all">Departments</a></li>
<li class="Suppliers"><a href="/suppliers/all">Suppliers</a></li>
<li class="Inquiries"><a href="/inquiries">Inquiries</a></li>
<li class="Contact Us"><a href="/contact">Contact Us</a></li>
</ul>
</div>		
<div class="span9 offset2">
	<h2 class = "logs-take-input" >
 	<%='Department Index' %></h2>
	<ul class="nav nav-list" >
	 	<li class="divider"></li>
	</ul>
	<%if !@departments.nil?%>
		<% @departments.each do |nf| %>
			<%@department = nf%>	
			<div>
				<% if @department.title.nil? %>
					<%= name = "No Name Available" %>
				<% else %>
					<% name = @department.title %>
				 	<li class="active">
				 	<%=  link_to (name), {:action => 'get_categories_names', :controller => 'departments' , :id => @department.id } %>
				 	<% if !@department.description.nil? %>
				 	</br>
				 	&nbsp;&nbsp;&nbsp;&nbsp;
				 	(<%= @department.description%>kjhhduegfkuygefgequfygqeuyfguqeygfueqyfgkufyqekuf jkhwudwhiudgwh)
				 	<% end %>
				 	</li>
                <% end %>
            </div>
       	<% end %>
    <% end %>
</div>